package com.kfm.order.service.impl;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.kfm.common.domain.entity.OrderDetails;
import com.kfm.order.mapper.OrderDetailsMapper;
import com.kfm.order.service.OrderDetailsService;

import java.util.List;

@Service
public class OrderDetailsServiceImpl implements OrderDetailsService{

    @Autowired
    private OrderDetailsMapper orderDetailsMapper;

    @Override
    public int deleteByPrimaryKey(Integer detailId) {
        return orderDetailsMapper.deleteByPrimaryKey(detailId);
    }

    @Override
    public int insert(OrderDetails record) {
        return orderDetailsMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderDetails record) {
        return orderDetailsMapper.insertSelective(record);
    }

    @Override
    public OrderDetails selectByPrimaryKey(Integer detailId) {
        return orderDetailsMapper.selectByPrimaryKey(detailId);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderDetails record) {
        return orderDetailsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderDetails record) {
        return orderDetailsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int batchInsert(List<OrderDetails> orderDetails) {
        return orderDetailsMapper.batchInsert(orderDetails);
    }

}
